package behavioralPattern.observer.example03;

import behavioralPattern.observer.example02.LotteryResult;

public class Message implements EventListener{
    @Override
    public void doEvent(LotteryResult lotteryResult) {
        System.out.println("<<<<<<<<<<<<<<<<<<<<<");
        System.out.println("发送短信通知用户，id：" + lotteryResult.getUid() + ";结果为：" + lotteryResult.getMsg());
        System.out.println("<<<<<<<<<<<<<<<<<<<<<");
    }
}
